package pc29;

import java.util.Scanner;

public class J10Return {

	static int x, y;
	static int sum, minus, multiple, divide;

	public static void main(String[] args) {
		// return 문을 사용하는 메서드

		Scanner sc = new Scanner(System.in);

		System.out.println("숫자 두개 입력해봐");
		x = sc.nextInt();
		y = sc.nextInt();

		getSum(x, y);
		getMinus(x, y);
		getMultiple(x, y);
		getDivide(x, y);

		System.out.println("합 : " + sum);
		System.out.println("빼기기 : " + minus);
		System.out.println("곱 : " + multiple);
		System.out.println("나누기 : " + divide);
	}

	public static void getSum(int a, int b) {
		sum = a + b;

	}

	public static void getMinus(int c, int d) {
		minus = c - d;

	}

	public static void getMultiple(int e, int f) {
		multiple = e * f;
	}

	public static void getDivide(int g, int h) {
		divide = g / h;
	}

}
